<div class="diemDts view">
<h2><?php  __('ĐIỂM ĐIỀU TRA');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('STT'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $diemDt['DiemDt']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Điểm'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $diemDt['DiemDt']['DIEM']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('SỬA điểm ĐT', true), array('action' => 'edit', $diemDt['DiemDt']['id'])); ?> </li>
		<li><?php echo $html->link(__('Xóa điểm ĐT', true), array('action' => 'delete', $diemDt['DiemDt']['id']), null, sprintf(__('Bạn có chắc muốn xóa # %s?', true), $diemDt['DiemDt']['id'])); ?> </li>
		<li><?php echo $html->link(__('Thêm điểm điều tra', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách điểm điều tra', true), array('action' => 'index')); ?> </li>
	<br>
		<li><?php echo $html->link(__('Danh sách Kết quả', true), array('controller' => 'ketquas', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm Kết quả', true), array('controller' => 'ketquas', 'action' => 'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php  __('Related Ketquas');?></h3>
	<?php if (!empty($diemDt['Ketqua'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $diemDt['Ketqua']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Doituong Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $diemDt['Ketqua']['doituong_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phieu Dt Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $diemDt['Ketqua']['phieu_dt_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nd Dt Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $diemDt['Ketqua']['nd_dt_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Diem Dt Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $diemDt['Ketqua']['diem_dt_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('KETQUA');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $diemDt['Ketqua']['KETQUA'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $html->link(__('SỬA KQ', true), array('controller' => 'ketquas', 'action' => 'edit', $diemDt['Ketqua']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Ketquas');?></h3>
	<?php if (!empty($diemDt['Ketqua'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Doituong Id'); ?></th>
		<th><?php __('Phieu Dt Id'); ?></th>
		<th><?php __('Nd Dt Id'); ?></th>
		<th><?php __('Diem Dt Id'); ?></th>
		<th><?php __('KETQUA'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($diemDt['Ketqua'] as $ketqua):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ketqua['id'];?></td>
			<td><?php echo $ketqua['doituong_id'];?></td>
			<td><?php echo $ketqua['phieu_dt_id'];?></td>
			<td><?php echo $ketqua['nd_dt_id'];?></td>
			<td><?php echo $ketqua['diem_dt_id'];?></td>
			<td><?php echo $ketqua['KETQUA'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'ketquas', 'action' => 'view', $ketqua['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'ketquas', 'action' => 'edit', $ketqua['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'ketquas', 'action' => 'delete', $ketqua['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ketqua['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Ketqua', true), array('controller' => 'ketquas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
